package com.hualan.mapper;

import com.hualan.domain.Course;
import com.hualan.domain.CourseCui;

import java.util.List;

/**
* @author 29524
* @description 针对表【course(课程表，存储所有课程信息)】的数据库操作Mapper
* @createDate 2024-09-05 15:40:17
* @Entity com.hualan.domain.Course
*/
public interface CourseMapper {
    //通过id删除
    int deleteByPrimaryKey(Long id);

    int insert(Course record);
    //动态增加
    int insertSelective(Course record);

    Course selectByPrimaryKey(Long id);
    //动态修改
    int updateByPrimaryKeySelective(Course record);

    int updateByPrimaryKey(Course record);
    //课程的全部内容
    List<Course> selAllCourse();
    //模糊查询
    List<Course> selLikeCourse(String coursename);


    //查看所有课程信息
    List<Course> selectAllCourse();
    //查看总条数
    int selectAlltotal();
    //通过课程名模糊查询
    List<Course> selectByLikeCourseName(String coursename);

    int updateByPrimaryKeySelectiveCui(CourseCui courseCui);
}
